#////////////////////////////////////////////////////////////////////////////
#//
#// Author      : Luis M. de la Cruz Salas
#// Date        : Fri Mar 21 12:26:33 GMT 2008
#//
#////////////////////////////////////////////////////////////////////////////


include	../tuna-cfd-rules.in

all :	laplace1D laplace2D hoffman hoffman2

laplace1D: laplace1D.o 
	$(CXX) $< -o $@ $(LIBS)

laplace1D.o: laplace1D.cpp
	$(CXX) $(CXXFLAGS) -DWITH_GNUPLOT $(INCLUDES) -c $<

laplace2D: laplace2D.o 
	$(CXX) $< -o $@ $(LIBS)

# For graphics add -DWITH_GNUPLOT for gnuplot or -DWITH_DX for OpenDx
laplace2D.o: laplace2D.cpp
	$(CXX) $(CXXFLAGS) -DWITH_GNUPLOT $(INCLUDES) -c $<

hoffman: hoffman.o 
	$(CXX) $< -o $@ $(LIBS)

hoffman.o: hoffman.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

hoffman2: hoffman2.o 
	$(CXX) $< -o $@ $(LIBS)

hoffman2.o: hoffman2.cpp
	$(CXX) $(CXXFLAGS) -DWITH_GNUPLOT $(INCLUDES) -c $<

clean:
	/bin/rm -f *.o *.ii laplace1D laplace1D.o laplace2D laplace2D.o hoffman hoffman.o hoffman2 hoffman2.o *~
